describeTheEcs
Description
Inquiry ecs instance price.
Request Method
POST
Request Path
/customer/ecs/describe
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
regionId | BODY | string | Yes | No sample value for this parameter. | Theregionidoftheecs. |
instanceIds | BODY | array | Yes | No sample value for this parameter. | Theinstanceidsoftheecs |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
result | object | `{"list":[{"vswitchId":"vsw-nj3e7hm36ecpt7y6g3pej","securityGroupId":"sg-nj301ppyjl24th0c8te6","instanceId":"i-nj301ppyjl2b308eh5xm","imageId":"centos_6_10_64_IPV6_20G_alibase_20201015.vhd","regionId":"cn-wulan-sta1-d01","systemDisk":{"size":99.0,"category":"cloud_efficiency"},"instanceType":"ecs.xn4.small","vpcId":"vpc-mb8t2h9tozxux8j7cmvxk","billingMethod":"Subscription","instanceFamily":"ecs.e4","imageType":"Public Image","expiredTime":704557527572}]}` | result |
resultCode | string | 0 | resultcode |
resultMsg | string | success | resultmessage |
Example
Successful Response example
{
"result":
{
"list":
[
{
"vswitchId":"vsw-nj3e7hm36ecpt7y6g3pej",
"securityGroupId":"sg-nj301ppyjl24th0c8te6",
"instanceId":"i-nj301ppyjl2b308eh5xm",
"imageId":"centos_6_10_64_IPV6_20G_alibase_20201015.vhd",
"regionId":"cn-wulan-sta1-d01",
"systemDisk":
{
"size":99.0,
"category":"cloud_efficiency"
},
"instanceType":"ecs.xn4.small",
"vpcId":"vpc-mb8t2h9tozxux8j7cmvxk",
"billingMethod":"Subscription",
"instanceFamily":"ecs.e4",
"imageType":"Public Image",
"expiredTime":704557527572
}
]
},
"resultCode":"0",
"resultMsg":"success"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}